<?php
/**
 * 自定义文件
 */
return [
    'uploadValidate' => [
        'imgValidate' => [
            'validate' => [
                'size' => 1048576 * 5,//1M
                'kb_size' => 1024 * 5,//1M
                'ext' => 'jpg|png|jpeg|gif|bmp|svg',//图片格式
            ],
        ],
        'videoValidate' => [
            'validate' => [
                'size' => 1048576 * 500,//1M
                'kb_size' => 1024 * 500,//1M
                'ext' => 'mkv|mp4|avi|rm|rmvb|mp3|m4v',//视频格式
            ],
        ],
        'fileValidate' => [
            'validate' => [
                'size' => 1048576 * 500,//1M
                'kb_size' => 1024 * 500,//1M
                'ext' => 'zip|swf|doc|pdf|xls|xlsx|pptx',//文件格式
            ],
        ],
        'audioValidate' => [
            'validate' => [
                'size' => 1048576 * 200,//1M
                'kb_size' => 1024 * 200,//1M
                'ext' => 'mp3|aac',//文件格式
            ],
        ],
    ],
];
